package com.caipiao.lottery.config;

/**
 * @author GaoFeng
 */

import com.caipiao.lottery.log.TraceLogger;
import com.caipiao.util.cache.MemCache;

public class MemCacheConfig extends ConfigInterface
{
	public MemCacheConfig(String name)
	{
		this.ConfigName = name;
	}
	
	@Override
	public boolean ReLoad()
	{
        try
        {
        	MemCache.InitCache(this.FilePath);
        	
        	TraceLogger.System.debug(this.ConfigName + "加载完成:" + FilePath);

            return true;
        }
        catch (Exception e)
        {
        	TraceLogger.System.error(this.ConfigName + "加载异常:" + FilePath + "|" + e.toString(), e);
        	 return false;
        }
	}
}
